package com.hooper.wallet.handler;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author Tim Hooper
 * @version 1.0
 * @time 2023/03/07/21:48
 */
@RestControllerAdvice
@Slf4j
public class BusinessExceptionHandler {

    @ExceptionHandler(RuntimeException.class)
    public String runtimeExp(RuntimeException e) {
        return e.getMessage();
    }

}
